package com.zzxx.www.service.impl;

import com.zzxx.www.dao.impl.UserDaoImpl;
import com.zzxx.www.domain.User;
import com.zzxx.www.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
	private UserDaoImpl userdao = new UserDaoImpl();
	@Override
	public List<User> queryAll() {
		List<User> list = userdao.findAll();
		return list;
	}

	@Override
	public void deleteById(int id) {
		userdao.deleteById(id);
	}
}
